package com.example.hft_suttgart.swp2;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Elefant_Description extends Activity implements OnClickListener{
	
	private Button startButton;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE);
		setContentView(R.layout.activity_player__description);
		
		startButton = (Button)findViewById(R.id.toGame);
		startButton.setOnClickListener(this);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.player__description, menu);
		return true;
	}

	@Override
	public void onClick(View component) {
		switch (component.getId()) {
		case R.id.toGame:
			Intent intent = new Intent(this, GroundOFGame.class);
			startActivity(intent);
			break;
		}
		
	}

}
